package com.winhxd.b2c.order.dao;

import com.winhxd.b2c.common.domain.order.model.OrderPayment;
import org.apache.ibatis.annotations.Param;

public interface OrderPaymentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(OrderPayment record);

    int insertSelective(OrderPayment record);

    OrderPayment selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(OrderPayment record);

    int updateByPrimaryKey(OrderPayment record);

    /**
     * @Description: 根据流水号查询
     * @Author: liuhanning
     * @Date: 2019/1/10 20:31
     */
    OrderPayment selectByOrderTransactionNo(@Param("orderTransactionNo")String orderTransactionNo);
    /**
     * @Description: 根据交易流水号更新
     * @Author: liuhanning
     * @Date: 2019/1/10 20:31
     */
    int updateByOrderTransactionNoSelective(OrderPayment record);

    /**
     *@author: zhangyanwei
     *@date: 2019/1/11 9:53
     *@Description: 根据订单号获取支付信息
     *@param: [orderNo]
     *@return: com.winhxd.b2c.common.domain.order.model.OrderPayment
     */
    OrderPayment selectByOrderNo(@Param("orderNo")String orderNo);
}